﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chess.aspx.cs" Inherits="chess" %>

<!DOCTYPE html />

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="scripts/NinJa.js"></script>
    <script type="text/javascript" src="scripts/NinJaCanvas.js"></script>
    <script type="text/javascript">
        function Update() {
            var b = $Canvas("board");
            var brush = SolidBrush.FromPredefined(Colors.White);

            b.Fill(SolidBrush.FromPredefined(Colors.Black))
            for (var i = 0; i < 8; i++) {
                for (var j = 0; j < 8; j++) {
                    if(((i + j) % 2) == 0){
                        b.FillCircle(brush, i * 64 + 32, j * 64 + 32, 32);
                    }
                }
            }
        }

        Client.S
        Page.OnLoad.Add(Update);
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <canvas style="border: 1px solid #000000" id="board" width="512" height="512"></canvas>
    </form>
</body>
</html>
